import request from "@/utils/request";

// 角色列表
export function getRoleList(query) {
    return request.get(`/roles/getRoleList?name=${query.name}&pageNum=${query.pageNum}&pageSize=${query.pageSize}` )
}
//修改角色
export function updateRole(data) {
    return request.post(`/roles/updateRole`, data)
}
export const  getUser=(roleId)=>{
    return request.get(`/roles/getRoleById/${id}`)
}
//删除角色
export function deleteRole(id) {
    return request.delete(`/roles/deleteRole/${id}`)
}

//角色下拉列表
export function selectRoleList() {
    return request.get(`/roles/selectRoleList`)
}
